package com.cosin.controller;

import com.cosin.dao.redis.GraphIdRepository;
import com.cosin.dao.neo4j.NodeRepository;
import com.cosin.dao.neo4j.RelationRepository;
import com.cosin.model.dto.NodeDTO;
import com.cosin.model.dto.RelationDTO;
import com.cosin.service.GraphService;
import com.cosin.util.ResponseUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/**
 * 仅用于开发时重置neo4j用
 */
@RestController
@RequestMapping("/admin")
public class ResetController {

    @Autowired
    RelationRepository relationRepository;
    @Autowired
    NodeRepository nodeRepository;
    @Autowired
    GraphService graphService;
    @Autowired
    GraphIdRepository graphIdRepository;

    @GetMapping("/reset/{projectId}")
    public ResponseEntity reset(@PathVariable("projectId") int projectId){
        return ResponseUtils.success(true);
    }
}
